﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="InventoryEdit.aspx.cs"
    Inherits="CRS.Web.BaseData.InventoryEdit" %>

<%@ Register Assembly="VitCode.Web.UI.PaginationGrid" Namespace="VitCode.Web.UI"
    TagPrefix="PaginationGrid" %>

<%@ Register src="../UserControls/DateCtl.ascx" tagname="DateCtl" tagprefix="uc1" %>
<%@ Register src="../UserControls/CalendarCtl.ascx" tagname="CalendarCtl" tagprefix="uc2" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>盘点单相关信息</title>
    <link href="../ScriptFiles/CSS/Main.css" type="text/css" rel="stylesheet" />
</head>
<body>
    <form id="form1" runat="server">
    <div class="PageNav">
    盘点单明细
    </div>
    <asp:Menu runat="server" ID="tabMenu" Orientation="Horizontal" StaticMenuItemStyle-CssClass="tab"
        StaticSelectedStyle-CssClass="selectedTab" CssClass="tabs" runat="server" BorderColor="#A8CFEB"
        OnMenuItemClick="tabMenu_MenuItemClick">
        <Items>
            <asp:MenuItem Text="基本信息" Selected="true" Value="0"></asp:MenuItem>
            <asp:MenuItem Text="货物信息" Selected="false" Value="1"></asp:MenuItem>
        </Items>
    </asp:Menu>
    <div id="BillInfo" runat="server">
        <table id="Table1" runat="server" style="border: 1px solid #A8CFEB; background-color: #F1F6FF;
            margin-top: 2px; width: 100%; font-size: 12px;" cellpadding="0" cellspacing="2">
            <tr style="height: 8px">
                <td colspan="2">
                </td>
            </tr>
            <tr>
                <td colspan="2">
                    <asp:Button ID=btnSave runat=server Text="保  存" class="btn_mouseout"
                        onmouseover="this.className='btn_mouseover' " onmouseout="this.className='btn_mouseout' "
                        onmousedown="this.className='btn_mousedown'" 
                        onmouseup="this.className='btn_mouseup'" onclick="btnSave_Click" />&nbsp;&nbsp;
                    <asp:Button ID=btnDelete runat="server" text="删  除" class="btn_mouseout"
                        onmouseover="this.className='btn_mouseover' " onmouseout="this.className='btn_mouseout' "
                        onmousedown="this.className='btn_mousedown'" 
                        onmouseup="this.className='btn_mouseup'" onclick="btnDelete_Click" />&nbsp;&nbsp;
                    <asp:Button ID=btnInventory runat="server" text="开始盘点" class="btn_mouseout"
                        onmouseover="this.className='btn_mouseover' " onmouseout="this.className='btn_mouseout' "
                        onmousedown="this.className='btn_mousedown'" 
                        onmouseup="this.className='btn_mouseup'" onclick="btnInventory_Click" />&nbsp;&nbsp;
                    <asp:Button ID=btnEndInventory runat=server Text="结束盘点" class="btn_mouseout"
                        onmouseover="this.className='btn_mouseover' " onmouseout="this.className='btn_mouseout' "
                        onmousedown="this.className='btn_mousedown'" 
                        onmouseup="this.className='btn_mouseup'" onclick="btnEndInventory_Click" 
                        Enabled="False" />
                </td>
            </tr>
            <tr style="height: 8px">
                <td colspan="2">
                </td>
            </tr>
            <tr>
                <td class="tdPageObjProMemo" style="width: 64px">
                    单号：
                </td>
                <td class="tdPageObjProMemo">
                    <asp:Label ID="lblBillNo" runat="server"></asp:Label>
                </td>
            </tr>
            <tr>
                <td class="tdPageObjProMemo">
                    盘点人：
                </td>
                <td class="tdPageObjProMemo">
                    <asp:Label ID="lblInventory" runat="server"></asp:Label>
                </td>
            </tr>
            <tr>
                <td class="tdPageObjProMemo">
                    盘点时间：
                </td>
                <td class="tdPageObjProMemo">
                    <uc2:CalendarCtl ID="txtDate" runat="server" />
                </td>
            </tr>
            <tr>
                <td class="tdPageObjProMemo">
                    创建时间：
                </td>
                <td class="tdPageObjProMemo">
                    <asp:Label ID="lblCreateTime" runat="server"></asp:Label>
                </td>
            </tr>
            <tr>
                <td class="tdPageObjProMemo">
                    备注：
                </td>
                <td class="tdPageObjProMemo">
                    <asp:TextBox ID="txtMemo" runat="server" TextMode="MultiLine" Width="400px" Rows="4" />
                </td>
            </tr>
        </table>
    </div>
    <div id="GoodsInfoDiv" runat="server" visible="false">
        <div dir="ltr" visible="true" lang="am">
            <table id="Table2" runat="server"  style="border: 1px solid #A8CFEB; background-color: #F1F6FF;
            margin-top: 2px; width: 100%; font-size: 12px;">
                <tr style="height: 8px">
                    <td colspan="2">
                    </td>
                </tr>
                <tr>
                    <td>
                        货品条码：<asp:TextBox ID="txtBarcode" runat=server 
                            ontextchanged="txtBarcode_TextChanged" Enabled=false />&nbsp;&nbsp;
                    </td>
                    <td align="right">
                        <asp:Button runat="server" ID="btnAdd" Text="确  定" Enabled=false class="btn_mouseout"
                            onmouseover="this.className='btn_mouseover' " onmouseout="this.className='btn_mouseout' "
                            onmousedown="this.className='btn_mousedown'" 
                            onmouseup="this.className='btn_mouseup'" onclick="txtBarcode_TextChanged" />
                    </td>
                </tr>
                <tr style="height: 8px">
                    <td colspan="2">
                    </td>
                </tr>
            </table>
        </div>
        <div>
            <table id="Table3" runat="server"  style="border: 1px solid #A8CFEB; background-color: #F1F6FF;
                margin-top: 2px; width: 100%; font-size: 12px;" cellpadding="0" cellspacing="0">
                <tr style="height: 8px">
                    <td colspan="6">
                    </td>
                </tr>
                <tr>
                    <td class="tdWoObjProMemo" style="width: 48px;">
                        条形码：
                    </td>
                    <td class="tdWoObjProVal">
                        <asp:Label ID="lblBarcodeInfo" runat="server">&nbsp;</asp:Label>
                    </td>
                    <td class="tdWoObjProMemo" style="width: 48px;">
                        货品名：
                    </td>
                    <td class="tdWoObjProVal">
                        <asp:Label ID="lblNameInfo" runat="server">&nbsp;</asp:Label>
                    </td>
                    <td class="tdWoObjProMemo" style="width: 48px;">
                        数量：
                    </td>
                    <td class="tdWoObjProVal">
                        <asp:TextBox ID="txtAmount" runat="server" Text="5" Enabled=false 
                            Width="48px" />
                    <asp:Label ID=lblErrorInfo runat=server></asp:Label></td>
                </tr>
                <tr style="height: 8px">
                    <td colspan="6">
                    </td>
                </tr>
            </table>
        </div>
        <div>
            <table runat="server" style="border: 1px solid #A8CFEB; background-color: #F1F6FF;
                margin-top: 2px; width: 100%; font-size: 12px;">
                <tr style="height: 4px">
                    <td colspan="10">
                    </td>
                </tr>
                <tr>
                    <td class="tdPageObjProMemo" style="width:128px">
                        当前盘点数：
                    </td>
                    <td class="tdPageObjProMemo" style="width:64px; font-size:16px; font-weight:bold;">
                        <asp:Label ID="lblCorrespondCount" runat="server">0</asp:Label>
                    </td>
                    <td class="tdPageObjProMemo" style="width:128px">
                        盘盈数：
                    </td>
                    <td class="tdPageObjProMemo" style="width:64px ;font-size:16px; font-weight:bold;">
                        <asp:Label ID="lblMore" runat="server">0</asp:Label>
                    </td>
                    <td class="tdPageObjProMemo" style="width:128px">
                        盘亏数：
                    </td>
                    <td class="tdPageObjProMemo" style="width:64px ;font-size:16px; font-weight:bold;">
                        <asp:Label ID="lblLess" runat="server">0</asp:Label>
                    </td>
                    <td class="tdPageObjProMemo" style="width:128px">
                        未盘数：
                    </td>
                    <td class="tdPageObjProMemo" style="width:64px ;font-size:16px; font-weight:bold;">
                        <asp:Label ID="lblNotManifestCount" runat="server">0</asp:Label>
                    </td>
                    <td class="tdPageObjProMemo" style="width:128px">
                        库存数：
                    </td>
                    <td class="tdPageObjProMemo" style="font-size:16px; font-weight:bold;">
                        <asp:Label ID="lblCount" runat="server">0</asp:Label>
                    </td>
                </tr>
                <tr style="height: 4px">
                    <td colspan="10">
                    </td>
                </tr>
            </table>
        </div>
        <div>
            <table id="Table4" runat="server" style="border: 1px solid #A8CFEB;
                background-color: #F1F6FF; margin-top: 2px; width: 100%; font-size: 12px;">
                <tr>
                    <td colspan="2">
                        <PaginationGrid:PaginationGrid ID="pgList" Width="100%" runat="server" DataKeyField="条码"
                            AutoSort="True" DataPaginationMode="Normal" DataFileFormat="Excel" Style="margin-bottom: 0px"
                            AutoGenerateColumns="False" onongriditemselect="pgList_OnGridItemSelect">
                            <Columns>
                                <PaginationGrid:PaginationGridButtonColumn CommandType="Select" HeaderText="选择" 
                                    Text="&lt;img src='/Images/edit.gif' border=0&gt;">
                                </PaginationGrid:PaginationGridButtonColumn>
                                <PaginationGrid:PaginationGridBoundColumn DataField="条码" HeaderText="条码">
                                </PaginationGrid:PaginationGridBoundColumn>
                                <PaginationGrid:PaginationGridBoundColumn DataField="货物名称" HeaderText="货品名">
                                </PaginationGrid:PaginationGridBoundColumn>
                                <PaginationGrid:PaginationGridBoundColumn DataField="库存数" HeaderText="库存数">
                                </PaginationGrid:PaginationGridBoundColumn>
                                <PaginationGrid:PaginationGridBoundColumn DataField="当前盘点数量" 
                                    HeaderText="当前盘点数量">
                                </PaginationGrid:PaginationGridBoundColumn>
                                <PaginationGrid:PaginationGridBoundColumn DataField="盘亏数" HeaderText="盘亏数">
                                </PaginationGrid:PaginationGridBoundColumn>
                                <PaginationGrid:PaginationGridBoundColumn DataField="盘亏金额" HeaderText="盘亏金额">
                                </PaginationGrid:PaginationGridBoundColumn>
                            </Columns>
                        </PaginationGrid:PaginationGrid>
                    </td>
                </tr>
                <tr>
                    <td class="tdPageObjProMemo">
                        盘亏总金额：
                    </td>
                    <td class="tdPageObjProMemo">
                        <asp:Label ID="lblTotalMoney" runat="server"></asp:Label>
                    </td>
                </tr>
            </table>
        </div>
    </div>
    </form>
</body>
</html>
